package net.kazed.nextaction.database.serialize;

import android.content.ContentResolver;

public class BackupRootHandler extends AbstractElementHandler {
    
    private ContextHandler contextHandler;
    private TaskHandler taskHandler;
    
    public BackupRootHandler(ContentResolver contentResolver) {
        super();
        contextHandler = new ContextHandler(contentResolver);
        taskHandler = new TaskHandler(contentResolver, contextHandler.getContextIdTranslation());

        addElementHandler("nextaction", this);
        addElementHandler(RestoreContext.ELEMENT_NAME, contextHandler);
        addElementHandler(RestoreTask.ELEMENT_NAME, taskHandler);
    }

}
